<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add a Denomination</title>
</head>
<body>
	<form:form method="post" modelAttribute="itemDenominationListForm"
		id="AddDenomination">
		<table border="0">
			<tr>
				<td class="td1">Sr. No.</td>
				<td class="td1">DENOMINATION NAME(VALUE)</td>
				<td class="td1">MONTH</td>
				<td class="td1">YEAR</td>
			</tr>

			<c:forEach items="${itemDenominationListForm.denominationList}"
				var="itemDenomination" varStatus="i">
				<tr>
					<td align="center">${i.count}</td>
					<td><form:input
							path="denominationList[${i.index}].denominationName" /></td>
					<td><form:select path="denominationList[${i.index}].month">
							<form:options items="${monthMap}" />
						</form:select>
					<td><form:select path="denominationList[${i.index}].year">
							<form:options items="${yearMap}" />
						</form:select>
				</tr>
			</c:forEach>
			<tr>
				<td><input type="submit" value="SUBMIT"></td>
				<td><input type="button" value="CANCEL"></input></td>
			</tr>
		</table>
	</form:form>
</body>
</html>